/*
 * @Author: lll 1280388921@qq.com
 * @Date: 2025-04-10 23:47:18
 * @LastEditors: lll 1280388921@qq.com
 * @LastEditTime: 2025-04-10 23:47:19
 * @FilePath: /lesson27/2.pipe_use/Task.hpp
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
#pragma once

#include <iostream>
#include<vector>

typedef void (*task_t)();
//函数指针

void task1()
{
    std::cout<<"刷新日志"<<std::endl;
}

void task2()
{
    std::cout<<"刷新野怪"<<std::endl;
}

void task3()
{
    std::cout<<"检测是否需要更新软件"<<std::endl;
}

void task4()
{
    std::cout<<"更新用户血条和蓝量"<<std::endl;
}

void LoadTask(std::vector<task_t>*tasks)
{
    tasks->push_back(task1);
    tasks->push_back(task2);
    tasks->push_back(task3);
    tasks->push_back(task4);
}